package com.etcn.common.Enum;

/**
 * yes or no
 * @author: guozc
 * @date: 2016-01-13
 */
public enum YesOrNo {
	
	/**
	 * {@code "1"	是}.
	 */
	YES("1", "是"),
	
	/**
	 * {@code "0"	 否}.
	 */
	NO("0","否");
	
	private final String value;

	private final String desc;

	private YesOrNo(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public String value() {
		return this.value;
	}

	public String desc() {
		return desc;
	}

	@Override
	public String toString() {
		return value;
	}

}
